 ;PPI
set_PortB_in equ 8AH
set_PortB_out equ 88H

;Set Port A
;Register Read
LCD_RD_Register equ 03H
;Register write
LCD_WR_Register equ 01H
;write to LCD
LCD_WR_Char equ 05H
;disable signal
disable_LCD_signal equ 00H

;Port B

;check busy flag stuff
Read_BFlag equ 80H


Func_set equ 38H ;set to 8 bit-bus mode with MPU
				;set 2-line display mode set
				;set to 5x8 dots format display mode
LCD_display_off equ 08H
LCD_display_on equ 0CH ;cursor off
LCD_CL_Display equ 01H
LCD_entry_mode_set equ 06H ;when write DDRAM operation, inc AC and shift cursor to the right
LCD_return_home equ 02H
first_line_LCD_address equ 80H
second_line_LCD_address equ 0C0H


;check address AC
check_LCD_AC equ 7FH
check_1st_line_overflow equ 27H
check_2nd_line_overflow equ 67H


;lines to display
display_line_one equ 01H
display_line_two equ 02H
display_both_lines equ 03H


;cur line to display
cur_line1 equ 01H
cur_line2 equ 02H

;LCD_status
LCD_Ready equ 00H
LCD_Processing equ 01H
LCD_writing equ 02H



LCD_buffer_size equ 16


